<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ishowshao
 * Date: 11-10-26
 * Time: 下午6:34
 * To change this template use File | Settings | File Templates.
 */

include_once 'paperblog.php';
checkLogin();
$posts = getPosts();
$title = '主页';
$config['posts'] = $posts;
$config['title'] = $title;
$config['filename'] = 'index';
$config['dir'] = ROOT;
$config['document_root'] = '';
compilePaging($config);
echo 'compile index ok';